package com.aabte.design.pattern.structural.adapter.poweradapter;

public class PowerAdapter implements DC5 {

    private AC220 ac220 = new AC220();

    @Override
    public int outputDC5() {
        int adapterInput = ac220.outputAC220V();

        int adapterOutput = adapterInput / 44;

        System.out.println("使用PowerAdapter输入DC:" + adapterInput + "V 输出DC:" + adapterOutput + "V");

        return adapterOutput;
    }
}
